package Ventanas;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.*;




/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
 * @author lucas
 */
public class VentanaPrincipal extends JFrame {

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
		} catch(Exception e) {
			e.printStackTrace();
		}
	}


	public VentanaPrincipal (){
		initComponents();
	}
	
	private void initComponents() {

		panelMenu = new JMenuBar();
		menu1 = new JMenu();
		menu2 = new JMenu();
		menuItem2 = new JMenuItem();
		menuItem3 = new JMenuItem();
		menuItem4 = new JMenuItem();
		menuItem5 = new JMenuItem();
		menuItem6 = new JMenuItem();
		menuItem7 = new JMenuItem();
		menu3 = new JMenu();
		menuItem13 = new JMenuItem();
		menuItem8 = new JMenuItem();
		menuItem9 = new JMenuItem();
		menuItem10 = new JMenuItem();
		menuItem11 = new JMenuItem();
		menuItem12 = new JMenuItem();
		menuItem1 = new JMenuItem();
		menu = new JMenu();
		miManualUsuario = new JMenuItem();
		panelTabs = new JTabbedPane();
		panelTurnos = new JPanel();
		separator10 = new JSeparator();
		btnAsignarTurno = new JButton();
		btnCambiarEstadoTurno = new JButton();
		btnVerAgendaMedico = new JButton();
		label2 = new JLabel();
		panelMedicos = new JPanel();
		btnAltaMedico = new JButton();
		btnModificarMedico = new JButton();
		btnVerInformacionMedico = new JButton();
		separator11 = new JSeparator();
		label3 = new JLabel();
		panelPacientes = new JPanel();
		separator7 = new JSeparator();
		btnVerInformacionPaciente = new JButton();
		label4 = new JLabel();
		space = new JPanel(null);
	
		//======== this ========
		{
			this.setTitle("Medic-Soft \u00ae Administracion de consultorios");
			this.setVisible(true);
			this.setAlwaysOnTop(true);
			this.setIconImage(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png").getImage());
			this.setResizable(false);
			Container thisContentPane = this.getContentPane();
			thisContentPane.setLayout(null);
	
			//======== panelMenu ========
			{
	
				//======== menu1 ========
				{
					menu1.setText("Archivo");
	
					//======== menu2 ========
					{
						menu2.setText("Exportar");
	
						//---- menuItem2 ----
						menuItem2.setText("Planillas");
						menu2.add(menuItem2);
	
						//---- menuItem3 ----
						menuItem3.setText("Pacientes");
						menu2.add(menuItem3);
	
						//---- menuItem4 ----
						menuItem4.setText("M\u00e9dicos");
						menu2.add(menuItem4);
	
						//---- menuItem5 ----
						menuItem5.setText("Especialidades");
						menu2.add(menuItem5);
	
						//---- menuItem6 ----
						menuItem6.setText("Obras Sociales");
						menu2.add(menuItem6);
						menu2.addSeparator();
	
						//---- menuItem7 ----
						menuItem7.setText("Todo");
						menu2.add(menuItem7);
					}
					menu1.add(menu2);
	
					//======== menu3 ========
					{
						menu3.setText("Imprimir");
	
						//---- menuItem13 ----
						menuItem13.setText("Turnos del D\u00eda");
						menu3.add(menuItem13);
	
						//---- menuItem8 ----
						menuItem8.setText("Planillas");
						menu3.add(menuItem8);
	
						//---- menuItem9 ----
						menuItem9.setText("Pacientes");
						menu3.add(menuItem9);
	
						//---- menuItem10 ----
						menuItem10.setText("M\u00e9dicos");
						menu3.add(menuItem10);
	
						//---- menuItem11 ----
						menuItem11.setText("Especialidades");
						menu3.add(menuItem11);
	
						//---- menuItem12 ----
						menuItem12.setText("Obras Sociales");
						menu3.add(menuItem12);
					}
					menu1.add(menu3);
					menu1.addSeparator();
	
					//---- menuItem1 ----
					menuItem1.setText("Salir");
					menu1.add(menuItem1);
				}
				panelMenu.add(menu1);
	
				//======== menu ========
				{
					menu.setText("Ayuda");
	
					//---- miManualUsuario ----
					miManualUsuario.setText("Manual de usuario");
					menu.add(miManualUsuario);
				}
				panelMenu.add(menu);
			}
			this.setJMenuBar(panelMenu);
	
			//======== panelTabs ========
			{
	
				//======== panelTurnos ========
				{
					panelTurnos.setLayout(null);
	
					//---- separator10 ----
					separator10.setOrientation(SwingConstants.VERTICAL);
					panelTurnos.add(separator10);
					separator10.setBounds(260, 0, 2, 244);
	
					//---- btnAsignarTurno ----
					btnAsignarTurno.setText("Asignar turno");
					panelTurnos.add(btnAsignarTurno);
					btnAsignarTurno.setBounds(29, 45, 200, btnAsignarTurno.getPreferredSize().height);
	
					//---- btnCambiarEstadoTurno ----
					btnCambiarEstadoTurno.setText("Cambiar estado de turno");
					panelTurnos.add(btnCambiarEstadoTurno);
					btnCambiarEstadoTurno.setBounds(29, 90, 200, btnCambiarEstadoTurno.getPreferredSize().height);
	
					//---- btnVerAgendaMedico ----
					btnVerAgendaMedico.setText("Ver agenda del medico");
					panelTurnos.add(btnVerAgendaMedico);
					btnVerAgendaMedico.setBounds(29, 140, 200, btnVerAgendaMedico.getPreferredSize().height);
	
					//---- label2 ----
					label2.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png"));
					panelTurnos.add(label2);
					label2.setBounds(285, 10, 215, 195);
					{
						jButton1 = new JButton();
						panelTurnos.add(jButton1);
						jButton1.setText("Asignar Turno");
						jButton1.setBounds(26, 44, 214, 27);
						jButton1.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								VentanaAsignarPacienteYMedico vent= new VentanaAsignarPacienteYMedico();
								vent.setVisible(true);
							}
						});
						
					}
					{
						btnVerTurnosMedico = new JButton();
						panelTurnos.add(btnVerTurnosMedico);
						btnVerTurnosMedico.setText("Ver Turnos");
						btnVerTurnosMedico.setBounds(26, 102, 214, 27);
						btnVerTurnosMedico.addActionListener(new ActionListener(){

							@Override
							public void actionPerformed(ActionEvent e) {
								VentanaVerAgendaMedico vent = new VentanaVerAgendaMedico();
								vent.setVisible(true);
								
							}
							
						});
					}

					{ // compute preferred size
						Dimension preferredSize = new Dimension();
						for(int i = 0; i < panelTurnos.getComponentCount(); i++) {
							Rectangle bounds = panelTurnos.getComponent(i).getBounds();
							preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
							preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
						}
						Insets insets = panelTurnos.getInsets();
						preferredSize.width += insets.right;
						preferredSize.height += insets.bottom;
						panelTurnos.setMinimumSize(preferredSize);
						panelTurnos.setPreferredSize(preferredSize);
					}
				}
				panelTabs.addTab("Turnos", panelTurnos);
	
	
				//======== panelMedicos ========
				{
					panelMedicos.setLayout(null);
	
					//---- separator11 ----
					separator11.setOrientation(SwingConstants.VERTICAL);
					panelMedicos.add(separator11);
					separator11.setBounds(260, 0, 2, 243);
	
					//---- label3 ----
					label3.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png"));
					panelMedicos.add(label3);
					label3.setBounds(285, 10, 215, 195);
					{
						lblNombre = new JLabel();
						panelMedicos.add(lblNombre);
						lblNombre.setText("Medico:");
						lblNombre.setBounds(12, 68, 43, 16);
					}
					{
						txtNombre = new JTextField();
						panelMedicos.add(txtNombre);
						txtNombre.setBounds(65, 68, 120, 22);
					}
					{
						btnBuscar = new JButton();
						panelMedicos.add(btnBuscar);
						btnBuscar.setText("Ver / Crear");
						btnBuscar.setBounds(65, 103, 118, 22);
						btnBuscar.addActionListener(new ActionListener(){

							@Override
							public void actionPerformed(ActionEvent e) {
								VentanaABMMedico vent = new VentanaABMMedico();
								vent.setVisible(true);
								
							}
							
						});
					}
					{
						btnClear = new JButton();
						panelMedicos.add(btnClear);
						btnClear.setText("C");
						btnClear.setBounds(196, 68, 39, 23);
						btnClear.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								txtNombre.setText("");
							}
						});
					}

					{ // compute preferred size
						Dimension preferredSize = new Dimension();
						for(int i = 0; i < panelMedicos.getComponentCount(); i++) {
							Rectangle bounds = panelMedicos.getComponent(i).getBounds();
							preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
							preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
						}
						Insets insets = panelMedicos.getInsets();
						preferredSize.width += insets.right;
						preferredSize.height += insets.bottom;
						panelMedicos.setMinimumSize(preferredSize);
						panelMedicos.setPreferredSize(preferredSize);
					}
				}
				panelTabs.addTab("M\u00e9dicos", panelMedicos);
	
	
				//======== panelPacientes ========
				{
					panelPacientes.setLayout(null);
	
					//---- btnAltaPaciente ----

					//---- btnModificarPaciente ----

					//---- separator7 ----
					separator7.setOrientation(SwingConstants.VERTICAL);
					panelPacientes.add(separator7);
					separator7.setBounds(260, 0, separator7.getPreferredSize().width, 244);
	
					//---- btnVerInformacionPaciente ----
					
					//---- label4 ----
					label4.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png"));
					panelPacientes.add(label4);
					label4.setBounds(285, 10, 215, 195);
					{
						jSeparator1 = new JSeparator();
						panelPacientes.add(jSeparator1);
						jSeparator1.setOrientation(SwingConstants.VERTICAL);
						jSeparator1.setBounds(260, 0, 2, 244);
					}
					{
						jLabel1 = new JLabel();
						panelPacientes.add(jLabel1);
						jLabel1.setText("Paciente:");
						jLabel1.setBounds(12, 56, 47, 41);
					}
					{
						jTextField1 = new JTextField();
						panelPacientes.add(jTextField1);
						jTextField1.setBounds(64, 70, 130, 22);
					}
					{
						btnVerTurnos = new JButton();
						panelPacientes.add(btnVerTurnos);
						btnVerTurnos.setText("Ver Turnos Paciente");
						btnVerTurnos.setBounds(37, 158, 199, 22);
						btnVerTurnos.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								//Falta hacer la ventana
								//vent.setVisible(true);
							}
						});
					}
					{
						btnVer = new JButton();
						panelPacientes.add(btnVer);
						btnVer.setText("Ver / Crear");
						btnVer.setBounds(72, 105, 115, 21);
						btnVer.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								VentanaABMPaciente vent= new VentanaABMPaciente();
								vent.setVisible(true);
							}
						});
					}
					{
						jButton2 = new JButton();
						panelPacientes.add(jButton2);
						jButton2.setText("C");
						jButton2.setBounds(202, 70, 39, 23);
						jButton2.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								jTextField1.setText("");
							}
						});
					}
				

					{ // compute preferred size
						Dimension preferredSize = new Dimension();
						for(int i = 0; i < panelPacientes.getComponentCount(); i++) {
							Rectangle bounds = panelPacientes.getComponent(i).getBounds();
							preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
							preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
						}
						Insets insets = panelPacientes.getInsets();
						preferredSize.width += insets.right;
						preferredSize.height += insets.bottom;
						panelPacientes.setMinimumSize(preferredSize);
						panelPacientes.setPreferredSize(new java.awt.Dimension(8, 247));
					}
				}
				panelTabs.addTab("Pacientes", panelPacientes);
	
	
				//======== panelEspecialidades ========
				{

					//---- separator9 ----

					//---- btnAltaEspecialidad ----

					//---- btnBajaEspecialidad ----

					//---- btnVerMedicosPorEspecialidad ----

					//---- label5 ----

					{ // compute preferred size
						Dimension preferredSize = new Dimension();
						for(int i = 0; i < panelEspecialidades.getComponentCount(); i++) {
							Rectangle bounds = panelEspecialidades.getComponent(i).getBounds();
							preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
							preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
						}
						Insets insets = panelEspecialidades.getInsets();
						preferredSize.width += insets.right;
						preferredSize.height += insets.bottom;
					}
				}

				//======== panelObrasSociales ========
				{

					//---- btnVerPlanillasObraSocial ----

					//---- btnAltaObraSocial ----

					//---- btnModificarObraSocial ----

					//---- separator8 ----

					//---- btnVerInformacionObraSocial ----

					//---- label6 ----

					{ // compute preferred size
						Dimension preferredSize = new Dimension();
						for(int i = 0; i < panelObrasSociales.getComponentCount(); i++) {
							Rectangle bounds = panelObrasSociales.getComponent(i).getBounds();
							preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
							preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
						}
						Insets insets = panelObrasSociales.getInsets();
						preferredSize.width += insets.right;
						preferredSize.height += insets.bottom;
					}
				}
				{
					panelObrasSociales = new JPanel();
					panelTabs.addTab("Obras Sociales", null, panelObrasSociales, null);

					
					{
						separator8 = new JSeparator();
						panelObrasSociales.add(separator8);
						separator8.setOrientation(SwingConstants.VERTICAL);
						separator8.setBounds(260, 0, 2, 244);
					}

					{
						label6 = new JLabel();
						panelObrasSociales.add(label6);
						label6.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png"));
						label6.setBounds(285, 10, 215, 195);
					}
					{
						jLabel3 = new JLabel();
						panelObrasSociales.add(jLabel3);
						jLabel3.setText("Obra Social:");
						jLabel3.setBounds(11, 56, 62, 67);
					}
					{
						jTextField3 = new JTextField();
						panelObrasSociales.add(jTextField3);
						jTextField3.setBounds(77, 79, 129, 22);
					}
					{
						jButton4 = new JButton();
						panelObrasSociales.add(jButton4);
						BorderLayout jButton4Layout = new BorderLayout();
						jButton4.setLayout(null);
						jButton4.setText("Ver / Crear");
						jButton4.setBounds(83, 111, 123, 20);
						jButton4.addActionListener(new ActionListener(){

							@Override
							public void actionPerformed(ActionEvent arg0) {
								VentanaABMObraSocial vent = new VentanaABMObraSocial();
								vent.setVisible(true);
								
							}
							
						});
					}
					{
						jButton6 = new JButton();
						panelObrasSociales.add(jButton6);
						jButton6.setText("C");
						jButton6.setBounds(216, 78, 39, 23);
						jButton6.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								jTextField3.setText("");
							}
						});
					}
					panelObrasSociales.setLayout(null);
					Dimension preferredSize = new Dimension();
					panelObrasSociales.setMinimumSize(preferredSize);
					panelObrasSociales.setPreferredSize(preferredSize);
				}
				{
					panelEspecialidades = new JPanel();
					panelTabs.addTab("Especialidades", null, panelEspecialidades, null);
					{
						separator9 = new JSeparator();
						panelEspecialidades.add(separator9);
						separator9.setOrientation(SwingConstants.VERTICAL);
						separator9.setBounds(260, 0, 2, 244);
					}

					{
						btnVerMedicosPorEspecialidad = new JButton();
						panelEspecialidades.add(btnVerMedicosPorEspecialidad);
						btnVerMedicosPorEspecialidad.setText("Ver m\u00e9dicos por especialidad");
						btnVerMedicosPorEspecialidad.setBounds(25, 137, 208, btnVerMedicosPorEspecialidad.getPreferredSize().height);
					}
					{
						label5 = new JLabel();
						panelEspecialidades.add(label5);
						label5.setIcon(new ImageIcon("/Seminario-Cliente/src/Images/MedicSoft.png"));
						label5.setBounds(285, 10, 215, 195);
					}
					{
						jLabel2 = new JLabel();
						panelEspecialidades.add(jLabel2);
						jLabel2.setText("Nombre:");
						jLabel2.setBounds(12, 73, 47, 16);
					}
					{
						jTextField2 = new JTextField();
						panelEspecialidades.add(jTextField2);
						jTextField2.setBounds(61, 73, 146, 22);
					}
					{
						jButton3 = new JButton();
						panelEspecialidades.add(jButton3);
						BorderLayout jButton3Layout1 = new BorderLayout();
						jButton3.setLayout(null);
						jButton3.setText("Ver / Crear");
						jButton3.setBounds(63, 107, 136, 21);
						jButton3.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								VentanaABMEspecialidad vent= new VentanaABMEspecialidad();
								vent.setVisible(true);
							}
						});
					}
					{
						jButton7 = new JButton();
						panelEspecialidades.add(jButton7);
						jButton7.setText("C");
						jButton7.setBounds(214, 73, 39, 23);
						jButton7.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								jTextField2.setText("");
							}
						});
					}
					panelEspecialidades.setLayout(null);
					Dimension preferredSize = new Dimension();
					panelEspecialidades.setMinimumSize(preferredSize);
					panelEspecialidades.setPreferredSize(new java.awt.Dimension(40, 10));
				}
				
			}
			thisContentPane.add(panelTabs);
			panelTabs.setBounds(0, 0, 525, 245);
	
			//---- btnSalir ----
		
			thisContentPane.add(space);
			space.setBounds(0, 285, 520, space.getPreferredSize().height);
			{
				jPanel1 = new JPanel();
				thisContentPane.add(jPanel1);
				jPanel1.setBounds(422, 245, 128, 58);
				{
					jButton5 = new JButton();
					jPanel1.add(jButton5);

					jButton5.setText("Salir");
					jButton5.setPreferredSize(new java.awt.Dimension(82, 29));
	
					jButton5.addActionListener(new ActionListener(){
							
							public void actionPerformed (ActionEvent paramActionEvent){
								dispose();
							}
						});
				}
			}

			{ // compute preferred size
				Dimension preferredSize = new Dimension();
				for(int i = 0; i < thisContentPane.getComponentCount(); i++) {
					Rectangle bounds = thisContentPane.getComponent(i).getBounds();
					preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
					preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
				}
				Insets insets = thisContentPane.getInsets();
				preferredSize.width += insets.right;
				preferredSize.height += insets.bottom;
				thisContentPane.setMinimumSize(preferredSize);
				thisContentPane.setPreferredSize(new java.awt.Dimension(547, 290));
			}
			this.pack();
			this.setSize(580, 337);
			this.setLocationRelativeTo(null);
		}

	}
	


	private JMenuBar panelMenu;
	private JMenu menu1;
	private JMenu menu2;
	private JPanel panelImagenPaciente;
	private JButton jButton7;
	private JButton jButton6;
	private JButton jButton2;
	private JButton btnVer;
	private JButton btnClear;
	private JButton jButton5;
	private JPanel jPanel1;
	private JButton btnVerTurnos;
	private JButton btnDeshacer;
	private JButton jButton4;
	private JTextField jTextField3;
	private JLabel jLabel3;
	private JButton jButton3;
	private JTextField jTextField2;
	private JLabel jLabel2;
	private JTextField jTextField1;
	private JLabel jLabel1;
	private JSeparator jSeparator1;
	private JButton btnBuscar;
	private JTextField txtNombre;
	private JLabel lblNombre;
	private JButton btnVerTurnosMedico;
	private JButton jButton1;
	private JMenuItem menuItem2;
	private JMenuItem menuItem3;
	private JMenuItem menuItem4;
	private JMenuItem menuItem5;
	private JMenuItem menuItem6;
	private JMenuItem menuItem7;
	private JMenu menu3;
	private JMenuItem menuItem13;
	private JMenuItem menuItem8;
	private JMenuItem menuItem9;
	private JMenuItem menuItem10;
	private JMenuItem menuItem11;
	private JMenuItem menuItem12;
	private JMenuItem menuItem1;
	private JMenu menu;
	private JMenuItem miManualUsuario;
	private JTabbedPane panelTabs;
	private JPanel panelTurnos;
	private JSeparator separator10;
	private JButton btnAsignarTurno;
	private JButton btnCambiarEstadoTurno;
	private JButton btnVerAgendaMedico;
	private JLabel label2;
	private JPanel panelMedicos;
	private JButton btnAltaMedico;
	private JButton btnModificarMedico;
	private JButton btnVerInformacionMedico;
	private JSeparator separator11;
	private JLabel label3;
	private JPanel panelPacientes;
	private JSeparator separator7;
	private JButton btnVerInformacionPaciente;
	private JLabel label4;
	private JPanel panelEspecialidades;
	private JSeparator separator9;
	private JButton btnAltaEspecialidad;
	private JButton btnBajaEspecialidad;
	private JButton btnVerMedicosPorEspecialidad;
	private JLabel label5;
	private JPanel panelObrasSociales;
	private JButton btnAltaObraSocial;
	private JButton btnModificarObraSocial;
	private JSeparator separator8;
	private JButton btnVerInformacionObraSocial;
	private JLabel label6;
	private JPanel space;
}
